﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web.UI.WebControls;
using Dcms.BLL;
using Dcms.Common;
using Dcms.Model;
using AjaxPro;
using WebApp.AppCode;
public partial class Manage_Modle_Product_ProductList : System.Web.UI.Page
{
    public String TerrFatherID;
    public CompetenceLib CL = new CompetenceLib();
    public String Language = "";
    public String ROLESTR = "PRODUCT";
    public string strModelKeyID = "";
    public string strCommentFlag = "0";
    public string strTopCateID = "";
    public string strPermissionID = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        CL.IsLogin();
        if (Session["DCMSLANGUAGE"] != null)
        {
            Language = Session["DCMSLANGUAGE"].ToString();
        }
        strTopCateID = Request.QueryString["TopCateID"];
        strPermissionID = Request.QueryString["id"] + "";
        Utility.RegisterTypeForAjax(typeof(Dcms.BLL.Dcms_CateBLL));
        Dcms_CateBLL cBll = new Dcms_CateBLL();
        int intModelKeyID = PublicFunction.GetModelKeyID(Convert.ToInt32(Request.QueryString["id"]));
        strModelKeyID = intModelKeyID.ToString();
        TerrFatherID = cBll.GetTopCateIdByFlag(ROLESTR, intModelKeyID, Language).ToString();

        Dcms_CateModel cModel = cBll.GetModelByFlag(ROLESTR, intModelKeyID, Language);
        strCommentFlag = cModel.Cate_IsCommentFlag.ToString();
    }
}
